<!doctype html>
<html lang="zh-CN">
<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <meta name="referrer" content="no-referrer-when-downgrade">
    

    <title>编程中ifelse的作用是什么？我们为什么要在乎它 | 早起的年轻人</title>
    <meta property="og:title" content="编程中ifelse的作用是什么？我们为什么要在乎它 - 早起的年轻人">
    <meta property="og:type" content="article">
        
    <meta property="article:published_time" content='2021-08-15T11:27:55&#43;08:00'>
        
        
    <meta property="article:modified_time" content='2021-08-15T11:27:55&#43;08:00'>
        
    <meta name="Keywords" content="Flutter，golang,go语言,go语言笔记,飞雪无情,java,android,博客,项目管理,python,软件架构,公众号,小程序">
    <meta name="description" content="编程中ifelse的作用是什么？我们为什么要在乎它">
        
    <meta name="author" content="luckly">
    <meta property="og:url" content="https://luckly.work/post/Flutter/%E7%BC%96%E7%A8%8B%E4%B8%ADifelse%E7%9A%84%E4%BD%9C%E7%94%A8%E6%98%AF%E4%BB%80%E4%B9%88%E6%88%91%E4%BB%AC%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%9C%A8%E4%B9%8E%E5%AE%83/">
    <link rel="shortcut icon" href='/favicon.ico'  type="image/x-icon">

    <link rel="stylesheet" href='/css/normalize.css'>
    <link rel="stylesheet" href='/css/style.css'>
    <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    
    
    
        <link href="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" rel="stylesheet">
    
    
    
    
        <link rel="stylesheet" href='/css/douban.css'>
    
        <link rel="stylesheet" href='/css/other.css'>
    
</head>

<link rel="stylesheet"
      href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>
<body>
    <header id="header" class="clearfix">
    <div class="container">
        <div class="col-group">
            <div class="site-name ">
                
                    <a id="logo" href="https://luckly.work/">
                        早起的年轻人
                    </a>
                
                <p class="description">专注于Flutter、Android、Java、Go语言(golang)、移动互联网、项目管理、软件架构</p>
            </div>
            <div>
                <nav id="nav-menu" class="clearfix">
                    <a class="current" href="https://luckly.work/">首页</a>
                    
                    <a  href="https://luckly.work/categories/" title="分类">分类</a>
                    
                    <a  href="https://luckly.work/tags/" title="标签">标签</a>
                    
                    <a  href="https://luckly.work/archives/" title="归档">归档</a>
                    
                    <a  href="https://luckly.work/about/" title="关于我">关于我</a>
                    
                    <a  href="https://github.com/ITmxs/" title="github">github</a>
                    
                </nav>
            </div>
        </div>
    </div>
</header>

    <div id="body">
        <div class="container">
            <div class="col-group">

                <div class="col-8" id="main">
                    
<div class="res-cons">
    <style type="text/css">
    .post-toc {
        position: fixed;
        width: 200px;
        margin-left: -210px;
        padding: 5px 10px;
        font-family: Athelas, STHeiti, Microsoft Yahei, serif;
        font-size: 12px;
        border: 1px solid rgba(0, 0, 0, .07);
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.98);
        background-clip: padding-box;
        -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, .125);
        word-wrap: break-word;
        white-space: nowrap;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        z-index: 999;
        cursor: pointer;
        max-height: 70%;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .post-toc .post-toc-title {
        width: 100%;
        margin: 0 auto;
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        text-align: center;
    }

    .post-toc .post-toc-content {
        font-size: 15px;
    }

    .post-toc .post-toc-content>nav>ul {
        margin: 10px 0;
    }

    .post-toc .post-toc-content ul {
        padding-left: 20px;
        list-style: square;
        margin: 0.5em;
        line-height: 1.8em;
    }

    .post-toc .post-toc-content ul ul {
        padding-left: 15px;
        display: none;
    }

    @media print,
    screen and (max-width:1057px) {
        .post-toc {
            display: none;
        }
    }
</style>
<div class="post-toc" style="position: absolute; top: 188px;">
    <h2 class="post-toc-title">文章目录</h2>
    <div class="post-toc-content">
        <nav id="TableOfContents">
  <ul>
    <li>
      <ul>
        <li></li>
        <li><a href="#结论">结论：</a></li>
      </ul>
    </li>
  </ul>
</nav>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        var postToc = $(".post-toc");
        if (postToc.length) {
            var leftPos = $("#main").offset().left;
            if(leftPos<220){
                postToc.css({"width":leftPos-10,"margin-left":(0-leftPos)})
            }

            var t = postToc.offset().top - 20,
                a = {
                    start: {
                        position: "absolute",
                        top: t
                    },
                    process: {
                        position: "fixed",
                        top: 20
                    },
                };
            $(window).scroll(function () {
                var e = $(window).scrollTop();
                e < t ? postToc.css(a.start) : postToc.css(a.process)
            })
        }
    })
</script>
    <article class="post">
        <header>
            <h1 class="post-title">编程中ifelse的作用是什么？我们为什么要在乎它</h1>
        </header>
        <date class="post-meta meta-date">
            2021年8月15日
        </date>
        
        <div class="post-meta">
            <span>|</span>
            
            <span class="meta-category"><a href='/categories/Flutter'>Flutter</a></span>
            
        </div>
        
        
        <div class="post-meta">
            <span id="busuanzi_container_page_pv">|<span id="busuanzi_value_page_pv"></span><span>
                    阅读</span></span>
        </div>
        
        
        <div class="post-content">
            <h1 id="编程中的-if-else-语句是什么我如何使用它们我为什么要在乎">编程中的 if else 语句是什么？我如何使用它们？我为什么要在乎？</h1>
<p>
        <a data-fancybox="gallery" href="https://luckly007.oss-cn-beijing.aliyuncs.com/img/IMG_6959.jpg">
            <img class="mx-auto" alt="img" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/IMG_6959.jpg" />
        </a>
    </p>
<p>我们今天要看看的是“if”和“else”语句。我相信这些是编程中更容易掌握的概念之一，因为它们与我们的自然语言非常相似。我会尽我最大的努力使它们成为一个易于理解的概念。</p>
<h4 id="什么是-if-else-语句">什么是 if else 语句？</h4>
<p>所以首先让我们从解释它们是什么开始。if else 语句是一种检查代码中某些内容的方法。如果我们想知道一个数字是否等于 10，我们可以使用 if else 语句。在自然语言中，它听起来像这样；如果这个数字等于 10，那么做一些事情，否则(否则)做其他事情。在代码中，这个语句看起来像这样；</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">if</span> (thisNumber <span style="color:#f92672">==</span> <span style="color:#ae81ff">10</span>) {
     <span style="color:#75715e">// do something
</span><span style="color:#75715e"></span>   } <span style="color:#66d9ef">else</span> {
     <span style="color:#75715e">// do something else
</span><span style="color:#75715e"></span>   }
</code></pre></div><p>如果您尝试将所有内容都读出来，那么我想您会听到它听起来与我们上面的句子非常相似。让我们解释一下。它由五个部分组成：</p>
<p><strong>If statement：</strong></p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"> <span style="color:#66d9ef">if</span> (thisNumber <span style="color:#f92672">==</span> <span style="color:#ae81ff">10</span>)
</code></pre></div><p><strong>布尔表达式：</strong></p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart">thisNumber <span style="color:#f92672">==</span> <span style="color:#ae81ff">10</span>
</code></pre></div><p><strong>操作符</strong></p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#f92672">==</span>
</code></pre></div><p><strong>else 语句(不需要，但有时很有用)</strong></p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">else</span>
</code></pre></div><h4 id="if-statement">If statement：</h4>
<p>所以本质上，if 语句就像一个子句。这意味着 if 语句的范围内(大括号“{}”内)的内容不会被调用或不会被执行(执行将是更正确的术语)，除非 if 语句评估为真。评估为真意味着如果 if 语句内(括号“()”内)为真，则执行大括号内的内容。在括号内，我们有所谓的布尔表达式。它可以是真也可以是假。</p>
<h4 id="布尔表达式">布尔表达式：</h4>
<p>那么，布尔表达式是一个评估结果为真或假的语句。我们的 if 语句也可以像这样；</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">bool</span> jonSnowKnowsNothing <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>;

<span style="color:#66d9ef">if</span> (jonSnowKnowsNothing) {
    print(<span style="color:#e6db74">&#34;你知道的越多，不知道的就越多&#34;</span>);
  }
</code></pre></div><p>如果我们运行这段代码，你认为会发生什么？还有打印()；是将括号内的内容打印到控制台/终端的语句。所以如果我们运行这段代码，我们会看到类似的东西</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart">You know nothing Jon Snow
</code></pre></div><p>所以我们的程序打印；你知道的越多，不知道的就越多。这样做是因为 if 语句的计算结果为 true。if 语句的计算结果为 true，因为我们将括号内的变量设置为等于 true</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">bool</span> jonSnowKnowsNothing <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>;
</code></pre></div><p>如果我们将其设置为等于 false，那么我们的程序将不会打印任何内容，因为我们永远不会进入我们的 if 语句范围。所以实际上这只是为了表明我们的 if 语句检查其中的内容的总和是否为真。我们可以在 if 语句中检查一些事情是否正确。听起来像这样；if Jon Snow knows nothing AND the earth is flat 那么打印这是一个真实的陈述。在代码中看起来像这样</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">bool</span> jonSnowKnowsNothing <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>; 
<span style="color:#66d9ef">bool</span> theEarthIsFlat <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>;

<span style="color:#66d9ef">if</span> (jonSnowKnowsNothing <span style="color:#f92672">&amp;&amp;</span> theEarthIsFlat) {
     print(<span style="color:#e6db74">&#34;This is a true statement&#34;</span>);
   }
</code></pre></div><p>我们的程序现在将打印；这是一个真实的陈述。因为theEarthIsFlat。好的，但是严肃地说，如果我们有一个正确的陈述和一个错误的陈述，那么整个陈述都是不正确的。所以，如果我们再看看上面的例子，它应该是这样的。据我所知，theEarthIsFlat=false，所以如果我们将其设置为假。然后会发生什么？</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">bool</span> jonSnowKnowsNothing <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>; 
<span style="color:#66d9ef">bool</span> theEarthIsFlat <span style="color:#f92672">=</span> <span style="color:#66d9ef">false</span>;

<span style="color:#66d9ef">if</span> (jonSnowKnowsNothing <span style="color:#f92672">&amp;&amp;</span> theEarthIsFlat) {
     print(<span style="color:#e6db74">&#34;这将是一个疯狂的世界&#34;</span>);
   }
</code></pre></div><p>如果第一个语句为真，第二个语句为真，则我们打印；这将是一个疯狂的世界。但是，如果其中一个语句的计算结果为 false，那么它们都不是 true，这意味着我们被锁定在 if 语句范围之外。</p>
<h4 id="运算符">运算符：</h4>
<p>让我们来看看我们的布尔表达式运算符。运算符是您在上面看到的“&amp;&amp;”。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart">jonSnowKnowsNothing <span style="color:#f92672">&amp;&amp;</span> theEarthIsFlat
</code></pre></div><p>我们还看到了等号运算符“==”</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart">thisNumber <span style="color:#f92672">==</span> <span style="color:#ae81ff">10</span>
</code></pre></div><p><strong>比较运算符：</strong>
那么它们是什么以及它们的含义是什么？我们已经看到了等于运算符“==”，它只是检查 a 是否等于 b。为此，a 和 b 必须是相同类型的。您无法将 int 与 String 进行比较。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> a <span style="color:#f92672">=</span> <span style="color:#ae81ff">1</span>;
<span style="color:#66d9ef">int</span> b <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

a <span style="color:#f92672">==</span> b

<span style="color:#75715e">// this is false, 1 is not equal to 2
</span></code></pre></div><p>这里我们有第二个比较运算符。不等于; !=</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> a <span style="color:#f92672">=</span> <span style="color:#ae81ff">1</span>;
<span style="color:#66d9ef">int</span> b <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

a <span style="color:#f92672">!=</span> b

<span style="color:#75715e">// this is now true, because 1 is not equal to 2
</span></code></pre></div><p>如果这很难理解，我建议将其读为“1 不等于 2”。然后你会更容易看出表达式是否正确。例如，如果 a = 1 且 b = 1。你读到“1 不等于 1 是真的吗”。听到这听起来不正确可能更容易。</p>
<p>我们还有大于和小于运算符；&gt; &lt;。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> a <span style="color:#f92672">=</span> <span style="color:#ae81ff">1</span>;
<span style="color:#66d9ef">int</span> b <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

a <span style="color:#f92672">&gt;</span> b

<span style="color:#75715e">// this is false, because 1 is not greater than 2
</span></code></pre></div><p>很多人一开始都在与这些运算符斗争。我听说过很多解释试图让它更容易。我会给你我的建议如何思考。但是需要注意的是，您编码和使用它们的次数越多，它就会变得越容易。然后你甚至不必考虑。但是，我的建议是简单地将其视为符号的哪一侧最大？</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#f92672">&gt;</span>
</code></pre></div><p>左侧较大&gt;右侧较小。我觉得这是最容易记住的方法，因为这也是运算符所做的。它检查什么是最大的。将其视为一侧倾斜的等号。在等号上 = 两行之间的间距相等。但是如果这个标志在一侧倾斜，那么一侧就会有一个巨大的间隙 &gt; 而另一侧没有间隙。</p>
<p>现在我们可以用不同的方式组合这些标志。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> a <span style="color:#f92672">=</span> <span style="color:#ae81ff">1</span>;
<span style="color:#66d9ef">int</span> b <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

a <span style="color:#f92672">==</span> b <span style="color:#75715e">// one is equal to two? false
</span><span style="color:#75715e"></span>a <span style="color:#f92672">&gt;</span> b <span style="color:#75715e">// one is greater than two? false
</span><span style="color:#75715e"></span>a <span style="color:#f92672">&lt;</span> b <span style="color:#75715e">// one is less than two? true   a != b // one is not equal to two? true   
</span><span style="color:#75715e"></span>a <span style="color:#f92672">!&gt;</span> b <span style="color:#75715e">// one is not greater than two? true
</span><span style="color:#75715e"></span>a <span style="color:#f92672">!&lt;</span> b <span style="color:#75715e">// one is not less than two? false
</span></code></pre></div><p>这些被称为比较运算符，因为我们比较某些东西。在这种情况下，我们将 a 与 b 进行比较。</p>
<p><strong>逻辑运算符：</strong>
我们还有第二个类别，即“&amp;&amp;”存在的地方。这些运算符称为逻辑运算符。这些是我们的 AND、OR 和 NOT。看起来像这样；</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#f92672">&amp;&amp;</span> <span style="color:#75715e">// AND
</span><span style="color:#75715e"></span><span style="color:#f92672">||</span> <span style="color:#75715e">// OR
</span><span style="color:#75715e"></span><span style="color:#f92672">!</span> <span style="color:#75715e">// NOT
</span></code></pre></div><p>我们已经看到了“&amp;&amp;”和“！”。我们的 NOT (!) 运算符在解释时可能难以掌握。但是我觉得像上面那样显示时更容易掌握。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart">a <span style="color:#f92672">!=</span> b <span style="color:#75715e">// one is not equal to two? true
</span><span style="color:#75715e"></span>a <span style="color:#f92672">!&gt;</span> b <span style="color:#75715e">// one is not greater than two? true
</span><span style="color:#75715e"></span>a <span style="color:#f92672">!&lt;</span> b <span style="color:#75715e">// one is not less than two? false
</span></code></pre></div><p>正如您可能会或可能不会看到的那样。我们的 NOT 运算符所做的就是在我们的句子中添加一个“not”。如果我们删除“！” 语句中的运算符。然后我们也简单地将它从我们的句子中删除，我们就恢复正常了。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#75715e">// With NOT operator:
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">!=</span> b <span style="color:#75715e">// one is not equal to two? true
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">!&gt;</span> b <span style="color:#75715e">// one is not greater than two? true
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">!&lt;</span> b <span style="color:#75715e">// one is not less than two? false
</span><span style="color:#75715e"></span>
<span style="color:#75715e">// Without NOT operator:
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">==</span> b <span style="color:#75715e">// one is equal to two? false
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">&gt;</span> b <span style="color:#75715e">// one is greater than two? false
</span><span style="color:#75715e"></span>   a <span style="color:#f92672">&lt;</span> b <span style="color:#75715e">// one is less than two? true
</span></code></pre></div><p>好的，这就是我们的 NOT 运算符所做的。现在让我们继续我们的 OR 和 AND 运算符。这些是合乎逻辑的，这意味着它们不像我们之前比较事物的运算符那样工作。逻辑运算符有助于组合多个布尔表达式以创建单个布尔输出。这听起来可能是胡言乱语。别担心，我会解释的。考虑 if 语句的括号，我们检查这里的内容是否为真。这称为评估布尔表达式。我们评估它是否属实。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">if</span> (thisNumber <span style="color:#f92672">==</span> <span style="color:#ae81ff">10</span>)
</code></pre></div><p><strong>AND 运算符：</strong>
现在我们可能要检查几件事。假设我们想创建一个程序，当我们离开家时打开闹钟。我们只希望在房子里没有人的情况下打开警报。否则它会熄灭，那会很烦人。我们是住在这所房子里的两个人。因此，我们只希望在 Jon 和 Khalesi 都不在家的情况下打开警报。所以本质上我们想在 if 语句中检查两件事。我们想看看乔恩是否出局。我们想看看 Khalesi 是否出局。我们的逻辑 AND 运算符可以帮助我们做到这一点。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">if</span> (jonIsOut <span style="color:#f92672">&amp;&amp;</span> khalesiIsOut) {
     print(<span style="color:#e6db74">&#34;Alarm truned on&#34;</span>);
   }
</code></pre></div><p>此语句现在检查第一部分的计算结果是否为真。jonIsOut 是真的还是假的？假设他出去了。然后它检查 khalesiIsOut 是真还是假？假设她还在家里。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">bool</span> jonIsOut <span style="color:#f92672">=</span> <span style="color:#66d9ef">true</span>;
<span style="color:#66d9ef">bool</span> khalesiIsOut <span style="color:#f92672">=</span> <span style="color:#66d9ef">false</span>;

<span style="color:#66d9ef">if</span> (jonIsOut <span style="color:#f92672">&amp;&amp;</span> khalesiIsOut) {
     print(<span style="color:#e6db74">&#34;Alarm truned on&#34;</span>);
   }
</code></pre></div><p>由于两者都没有出局，因此整个表达式的计算结果为 false。所以闹钟没有打开。对于我们的 AND 运算符，运算符两侧的两件事都必须评估为真。</p>
<p><strong>或运算符 ||：</strong>
新示例。假设我们想要构建一个提醒我们去取牛奶的应用程序。如果我们的牛奶盒完全空了，或者我们的牛奶盒剩余的牛奶少于 300 毫升，我们希望收到提醒。因为我们知道每天早上喝 300 毫升。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">double</span> milkLeft <span style="color:#f92672">=</span> <span style="color:#ae81ff">250.0</span>;

<span style="color:#66d9ef">if</span> (milkLeft <span style="color:#f92672">==</span> <span style="color:#ae81ff">0</span> <span style="color:#f92672">||</span> milkLeft <span style="color:#f92672">&lt;</span> <span style="color:#ae81ff">300</span>) {
     orderMoreMilk();
   }
</code></pre></div><p>所以这个声明现在为我们解决了这个问题。它会检查牛奶盒是否为空 (milkLeft == 0) 或牛奶盒中的牛奶是否少于 300 毫升 (milkLeft &lt; 300)。在我们的例子中，因为milkLeft = 250，所以第一部分milkLeft == 0 不为真。所以计算结果为假。第二部分milkLeft &lt; 300 为真，因为milkLeft = 250，即小于300。因此，如果任一为真，则该语句为真。因为我们陈述中的一部分是正确的。整个陈述都是真实的。所以我们进入了 if 语句的主体。</p>
<h4 id="其他声明">其他声明：</h4>
<p>现在不需要 else 语句了。您可以只使用 if 语句。您也可以连续使用多个 if 语句</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">2</span>) {

}
<span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">4</span>) {

}
</code></pre></div><p>在这种情况下，我们将检查变量“someInput”两次。因此，如果 someInput 首先等于 2 然后等于 4，我们将进入这两个 if 语句。 可能会发生这样的情况</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> someInput <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

<span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">2</span>) {
     someInput <span style="color:#f92672">=</span> <span style="color:#ae81ff">4</span>;
} 
<span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">4</span>) {

}
</code></pre></div><p>首先 someInput 等于 2。所以我们进入第一个 if 语句。然后在第一个 if 语句中，我们将 someInput 设置为等于 4。这意味着当我们的程序进入下一个 if 语句时，我们的变量 someInput 将等于 4。所以我们进入第二个 if 语句。</p>
<p>这是我们很少使用的东西。更常见的是“else if”语句：</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">int</span> someInput <span style="color:#f92672">=</span> <span style="color:#ae81ff">2</span>;

<span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">2</span>) {
     someInput <span style="color:#f92672">=</span> <span style="color:#ae81ff">4</span>;
} <span style="color:#66d9ef">else</span> <span style="color:#66d9ef">if</span> (someInput <span style="color:#f92672">==</span> <span style="color:#ae81ff">4</span>) {

}
</code></pre></div><p>在这种情况下，我们的程序会同时检查 if 语句，并且只让我们进入从一开始就为 true 的语句。本质上看，someInput 等于 2 吗？那么，someInput 等于 4 吗？根据答案，我们只会进入正确的答案。另一个没有被再次检查。如果我们要检查多个案例，则可以使用此方法。</p>
<h4 id="例子">例子：</h4>
<p>假设我们想要创建一个游戏。我们想要创建一个特定的方法，当一个人获胜时调用它。游戏中有不同的层次。根据您的级别，当您获胜时，您将获得特定的奖金。如果你是 1 级，你会得到一袋现金。如果你是二级，你会得到一个新的自定义主题。如果您达到三级(本游戏中的最高等级)，您将获得一个 女朋友。这可能看起来像这样</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-dart" data-lang="dart"><span style="color:#66d9ef">void</span> gameWon(<span style="color:#66d9ef">int</span> level) {

  <span style="color:#66d9ef">if</span> (level <span style="color:#f92672">==</span> <span style="color:#ae81ff">1</span>) {
    print(<span style="color:#e6db74">&#34;你会得到一袋现金&#34;</span>);

  } <span style="color:#66d9ef">else</span> <span style="color:#66d9ef">if</span> (level <span style="color:#f92672">==</span> <span style="color:#ae81ff">2</span>) {
    print(<span style="color:#e6db74">&#34;你会得到一个新的自定义主题&#34;</span>);

  } <span style="color:#66d9ef">else</span> <span style="color:#66d9ef">if</span> (level <span style="color:#f92672">==</span> <span style="color:#ae81ff">3</span>) {
    print(<span style="color:#e6db74">&#34;您将获得一个 女朋友&#34;</span>);
    showMeme();

  } <span style="color:#66d9ef">else</span> {
    <span style="color:#75715e">// this would be an error most likely. We would
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// only get here if the player has a level that is
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// greater than 3 or 0. Which should not happen.
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// Since we only have three levels in our game. 
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// A lonely &#39;else&#39; statement is something that runs
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// if the other if statements are false. Kind of
</span><span style="color:#75715e"></span>    <span style="color:#75715e">// like a safety net.
</span><span style="color:#75715e"></span>  }
}
</code></pre></div><p>看一下代码。我的建议只是考虑一下如何实现第五级。</p>
<h3 id="结论">结论：</h3>
<p>好吧，这就是 if 语句。</p>
<p>我用的   UI 设计工具 -  [Adobe XD](<a href="https://www.adobe.com/se/products/xd.html?gclid=Cj0KCQjwuNbsBRC-ARIsAAzITuetbiiSDrtjLcqNuGk1mn3TJjq7ji0XLa5gLh3kDXVZ7C7cVSPAb_saAiBJEALw_wcB&amp;sdid=B4XQ3XKF&amp;mv=search&amp;ef_id=Cj0KCQjwuNbsBRC-ARIsAAzITuetbiiSDrtjLcqNuGk1mn3TJjq7ji0XLa5gLh3kDXVZ7C7cVSPAb_saAiBJEALw_wcB:G:s&amp;s_kwcid=AL!3085!3!338346976726!e!!g!!adobe">https://www.adobe.com/se/products/xd.html?gclid=Cj0KCQjwuNbsBRC-ARIsAAzITuetbiiSDrtjLcqNuGk1mn3TJjq7ji0XLa5gLh3kDXVZ7C7cVSPAb_saAiBJEALw_wcB&amp;sdid=B4XQ3XKF&amp;mv=search&amp;ef_id=Cj0KCQjwuNbsBRC-ARIsAAzITuetbiiSDrtjLcqNuGk1mn3TJjq7ji0XLa5gLh3kDXVZ7C7cVSPAb_saAiBJEALw_wcB:G:s&amp;s_kwcid=AL!3085!3!338346976726!e!!g!!adobe</a> xd)</p>

        </div>

        
<div class="post-archive">
    <ul class="post-copyright">
        <li><strong>原文作者：</strong><a rel="author" href="https://luckly.work/">luckly</a></li>
        <li style="word-break:break-all"><strong>原文链接：</strong><a href="https://luckly.work/post/Flutter/%E7%BC%96%E7%A8%8B%E4%B8%ADifelse%E7%9A%84%E4%BD%9C%E7%94%A8%E6%98%AF%E4%BB%80%E4%B9%88%E6%88%91%E4%BB%AC%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%9C%A8%E4%B9%8E%E5%AE%83/">https://luckly.work/post/Flutter/%E7%BC%96%E7%A8%8B%E4%B8%ADifelse%E7%9A%84%E4%BD%9C%E7%94%A8%E6%98%AF%E4%BB%80%E4%B9%88%E6%88%91%E4%BB%AC%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%9C%A8%E4%B9%8E%E5%AE%83/</a></li>
        <li><strong>版权声明：</strong>本作品采用<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/">知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议</a>进行许可，非商业转载请注明出处（作者，原文链接），商业转载请联系作者获得授权。</li>
    </ul>
</div>
<br/>



        

<div class="post-archive">
    <h2>See Also</h2>
    <ul class="listing">
        
        <li><a href="/post/Flutter/%E7%BC%96%E7%A8%8B%E4%B8%AD%E6%9C%89%E5%93%AA%E4%BA%9B%E6%96%B9%E6%B3%95/">编程中有哪些方法</a></li>
        
        <li><a href="/post/Flutter/flutter%E4%B8%8E%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF2/">Flutter与原生通讯2</a></li>
        
        <li><a href="/post/Flutter/flutter%E4%B8%8E%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">Flutter与原生通讯</a></li>
        
        <li><a href="/post/Flutter/flutter%E6%8F%92%E4%BB%B6flutter_staggered_grid_view/">Flutter插件flutter_staggered_grid_view</a></li>
        
        <li><a href="/post/Flutter/flutter2%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/">Flutter2源码阅读</a></li>
        
    </ul>
</div>


        <div class="post-meta meta-tags">
            
            <ul class="clearfix">
                
                <li><a href='/tags/Flutter'>Flutter</a></li>
                
            </ul>
            
        </div>
    </article>
    
    

    
    
    <div class="post bg-white">
      <script src="https://utteranc.es/client.js"
            repo= "https://github.com/ITmxs/repo"
            issue-term="pathname"
            theme="github-light"
            crossorigin="anonymous"
            async>
      </script>
    </div>
    
</div>

                    <footer id="footer">
    <div>
        &copy; 2021 <a href="https://luckly.work/">早起的年轻人 By luckly</a>
        
        | <a rel="nofollow" target="_blank" href="http://beian.miit.gov.cn/">粤ICP备2021号-1</a>
        
    </div>
    <br />
    <div>
        <div class="github-badge">
            <a href="https://juejin.cn/user/3843548384077192" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">掘金</span></a>
        </div>
        <div class="github-badge">
            <a href="https://space.bilibili.com/480883651" target="_black"><span class="badge-subject">Design by</span><span class="badge-value bg-brightgreen">早起的年轻人</span></a>
        </div>
        <div class="github-badge">
            <a href="https://cloud.tencent.com/developer/user/6702670" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">云社区</span></a>
        </div>
    </div>
</footer>


    
    <script type="text/javascript">
        window.MathJax = {
            tex2jax: {
                inlineMath: [['$', '$']],
                processEscapes: true
                }
            };
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script><script src="https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js"></script>

<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>



    <script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>




    <script src='/js/douban.js'></script>
    <script src="/js/copy-to-clipboard.js"></script>

                </div>

                <div id="secondary">
    <section class="widget">
        <form id="search" action='https://luckly.work/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
      
      <input type="text" name="q" maxlength="20" placeholder="Search">
      <input type="hidden" name="sitesearch" value="https://luckly.work/">
      <button type="submit" class="submit icon-search"></button>
</form>
    </section>
    
    <section class="widget">
        <h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
    
    <li>
        <a href="https://luckly.work/post/nginx/nginx%E6%96%87%E4%BB%B6%E5%86%85%E5%AE%B9/" title="Nginx文件内容">Nginx文件内容</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/nginx/nginx%E6%9E%81%E7%AE%80%E6%95%99%E7%A8%8B/" title="Nginx极简教程">Nginx极简教程</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/nginx/%E5%8D%81%E5%88%86%E9%92%9F%E5%85%A5%E9%97%A8nginx/" title="十分钟入门Nginx">十分钟入门Nginx</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/go/Goland%E8%BF%9C%E7%A8%8B%E5%BC%80%E5%8F%91%E9%85%8D%E7%BD%AE/" title="Goland远程开发配置">Goland远程开发配置</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/%E8%AF%BB%E4%B9%A6/%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90/" title="域名解析">域名解析</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/git/%E6%8F%90%E4%BA%A4%E8%BF%87%E7%A8%8B%E7%9C%81%E7%95%A5%E6%9F%90%E4%BA%9B%E6%96%87%E4%BB%B6/" title="提交过程省略某些文件">提交过程省略某些文件</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter_DropdownButton%E7%A4%BA%E4%BE%8B/" title="Flutter_DropdownButton示例">Flutter_DropdownButton示例</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter_ExpansionPanelList%E5%92%8CExpansionPanelList.radio%E7%A4%BA%E4%BE%8B/" title="Flutter_ExpansionPanelList和ExpansionPanelList">Flutter_ExpansionPanelList和ExpansionPanelList</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/flutter_tips/Flutter%E5%BE%AE%E4%BF%A1%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E8%B7%B3%E5%9B%9EApp%E6%8C%87%E5%AE%9A%E9%A1%B5%E9%9D%A2/" title="Flutter微信分享链接跳回App指定页面">Flutter微信分享链接跳回App指定页面</a>
    </li>
    
    <li>
        <a href="https://luckly.work/post/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F/%E5%A4%96%E5%8C%85%E5%8F%AF%E8%83%BD%E7%9A%84%E9%97%AE%E9%A2%98/" title="外包可能的问题">外包可能的问题</a>
    </li>
    
</ul>
    </section>

    

    <section class="widget">
        <h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
    
    <li><a href="https://luckly.work/categories/Flutter/">Flutter (326)</a></li>
    
    <li><a href="https://luckly.work/categories/IT/">IT (2)</a></li>
    
    <li><a href="https://luckly.work/categories/Kotlin/">Kotlin (2)</a></li>
    
    <li><a href="https://luckly.work/categories/Mysql/">Mysql (1)</a></li>
    
    <li><a href="https://luckly.work/categories/nginx/">nginx (1)</a></li>
    
    <li><a href="https://luckly.work/categories/Vue/">Vue (6)</a></li>
    
    <li><a href="https://luckly.work/categories/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/android/">android (6)</a></li>
    
    <li><a href="https://luckly.work/categories/dart/">dart (96)</a></li>
    
    <li><a href="https://luckly.work/categories/Flutter/">Flutter (28)</a></li>
    
    <li><a href="https://luckly.work/categories/gin/">gin (25)</a></li>
    
    <li><a href="https://luckly.work/categories/git/">git (4)</a></li>
    
    <li><a href="https://luckly.work/categories/Go/">Go (102)</a></li>
    
    <li><a href="https://luckly.work/categories/gorm/">gorm (4)</a></li>
    
    <li><a href="https://luckly.work/categories/grpc/">grpc (1)</a></li>
    
    <li><a href="https://luckly.work/categories/html/">html (3)</a></li>
    
    <li><a href="https://luckly.work/categories/ios/">ios (1)</a></li>
    
    <li><a href="https://luckly.work/categories/linux/">linux (1)</a></li>
    
    <li><a href="https://luckly.work/categories/nginx/">nginx (6)</a></li>
    
    <li><a href="https://luckly.work/categories/python/">python (35)</a></li>
    
    <li><a href="https://luckly.work/categories/read/">读书笔记 (6)</a></li>
    
    <li><a href="https://luckly.work/categories/redis/">redis (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E5%8D%95/">书单 (8)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%B9%A6%E8%AF%84/">书评 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师 (19)</a></li>
    
    <li><a href="https://luckly.work/categories/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师 (25)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E5%88%99/">原则 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%9F%BA%E7%A1%80/">基础 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E5%BF%83%E8%AF%AD/">心语 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%8F%92%E4%BB%B6/">插件 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E6%95%99%E5%AD%A6/">教学 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%B2%BE%E8%BF%9B/">精进 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E7%BC%96%E7%A8%8B/">编程 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%99%9A%E5%B9%BB/">虚幻 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路 (2)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%91%E6%AD%A5/">跑步 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%B7%AF%E7%BA%BF/">路线 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学 (3)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%A1%B9%E7%9B%AE/">项目 (1)</a></li>
    
    <li><a href="https://luckly.work/categories/%E9%AD%85%E5%8A%9B/">魅力 (1)</a></li>
    
</ul>
    </section>

    <section class="widget">
        <h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
    
    <a href="https://luckly.work/tags/flutter/">flutter</a>
    
    <a href="https://luckly.work/tags/IT/">IT</a>
    
    <a href="https://luckly.work/tags/Kotlin/">Kotlin</a>
    
    <a href="https://luckly.work/tags/Mysql/">Mysql</a>
    
    <a href="https://luckly.work/tags/nginx/">nginx</a>
    
    <a href="https://luckly.work/tags/Vue/">Vue</a>
    
    <a href="https://luckly.work/tags/YouTube%E8%A7%86%E9%A2%91%E4%B8%8B%E8%BD%BD/">YouTube视频下载</a>
    
    <a href="https://luckly.work/tags/android/">android</a>
    
    <a href="https://luckly.work/tags/dart/">dart</a>
    
    <a href="https://luckly.work/tags/flutter/">flutter</a>
    
    <a href="https://luckly.work/tags/gin/">gin</a>
    
    <a href="https://luckly.work/tags/git/">git</a>
    
    <a href="https://luckly.work/tags/go/">go</a>
    
    <a href="https://luckly.work/tags/gorm/">gorm</a>
    
    <a href="https://luckly.work/tags/grpc/">grpc</a>
    
    <a href="https://luckly.work/tags/html/">html</a>
    
    <a href="https://luckly.work/tags/ios/">ios</a>
    
    <a href="https://luckly.work/tags/linux/">linux</a>
    
    <a href="https://luckly.work/tags/nginx/">nginx</a>
    
    <a href="https://luckly.work/tags/python/">python</a>
    
    <a href="https://luckly.work/tags/redis/">redis</a>
    
    <a href="https://luckly.work/tags/%E4%B8%AA%E4%BA%BA%E8%B5%84%E6%96%99/">个人资料</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E5%8D%95/">书单</a>
    
    <a href="https://luckly.work/tags/%E4%B9%A6%E8%AF%84/">书评</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统管理师</a>
    
    <a href="https://luckly.work/tags/%E4%BF%A1%E6%81%AF%E7%B3%BB%E7%BB%9F%E9%A1%B9%E7%9B%AE%E7%AE%A1%E7%90%86%E5%B8%88/">信息系统项目管理师</a>
    
    <a href="https://luckly.work/tags/%E5%85%A5%E9%97%A8/">入门</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E5%88%99/">原则</a>
    
    <a href="https://luckly.work/tags/%E5%8E%9F%E7%94%9F%E9%80%9A%E8%AE%AF/">原生通讯</a>
    
    <a href="https://luckly.work/tags/%E5%9F%BA%E7%A1%80/">基础</a>
    
    <a href="https://luckly.work/tags/%E5%A4%8D%E5%88%A9%E6%95%88%E5%BA%94/">复利效应</a>
    
    <a href="https://luckly.work/tags/%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B/">安装教程</a>
    
    <a href="https://luckly.work/tags/%E5%B0%91%E6%9C%89%E4%BA%BA%E8%B5%B0%E7%9A%84%E8%B7%AF/">少有人走的路</a>
    
    <a href="https://luckly.work/tags/%E5%BF%83%E8%AF%AD/">心语</a>
    
    <a href="https://luckly.work/tags/%E6%8F%92%E4%BB%B6/">插件</a>
    
    <a href="https://luckly.work/tags/%E6%95%99%E5%AD%A6/">教学</a>
    
    <a href="https://luckly.work/tags/%E7%8E%8B%E9%98%B3%E6%98%8E/">王阳明</a>
    
    <a href="https://luckly.work/tags/%E7%94%B5%E5%AD%90%E4%B9%A6/">电子书</a>
    
    <a href="https://luckly.work/tags/%E7%99%BB%E9%99%86%E8%A1%A8%E5%8D%95/">登陆表单</a>
    
    <a href="https://luckly.work/tags/%E7%A8%BB%E7%9B%9B%E5%92%8C%E5%A4%AB/">稻盛和夫</a>
    
    <a href="https://luckly.work/tags/%E7%A9%B7%E7%88%B8%E7%88%B8%E5%AF%8C%E7%88%B8%E7%88%B8/">穷爸爸富爸爸</a>
    
    <a href="https://luckly.work/tags/%E7%B2%BE%E8%BF%9B/">精进</a>
    
    <a href="https://luckly.work/tags/%E7%BC%96%E7%A8%8B/">编程</a>
    
    <a href="https://luckly.work/tags/%E8%99%9A%E5%B9%BB/">虚幻</a>
    
    <a href="https://luckly.work/tags/%E8%AF%97/">诗</a>
    
    <a href="https://luckly.work/tags/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/">读书笔记</a>
    
    <a href="https://luckly.work/tags/%E8%B4%A2%E5%8A%A1%E8%87%AA%E7%94%B1%E4%B9%8B%E8%B7%AF/">财务自由之路</a>
    
    <a href="https://luckly.work/tags/%E8%B7%91%E6%AD%A5/">跑步</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%94%B1%E4%BC%A0%E5%8F%82/">路由传参</a>
    
    <a href="https://luckly.work/tags/%E8%B7%AF%E7%BA%BF/">路线</a>
    
    <a href="https://luckly.work/tags/%E8%BD%AF%E4%BB%B6%E5%AE%9E%E6%96%BD/">软件实施</a>
    
    <a href="https://luckly.work/tags/%E9%80%9A%E8%AE%AF%E5%BD%95/">通讯录</a>
    
    <a href="https://luckly.work/tags/%E9%98%B3%E6%98%8E%E5%BF%83%E5%AD%A6/">阳明心学</a>
    
    <a href="https://luckly.work/tags/%E9%A1%B9%E7%9B%AE/">项目</a>
    
    <a href="https://luckly.work/tags/%E9%AD%85%E5%8A%9B/">魅力</a>
    
</div>
    </section>

    
<section class="widget">
    <h3 class="widget-title">友情链接</h3>
    <ul class="widget-list">
        
        <li>
            <a target="_blank" href="http://www.topgoer.com/" title="枯藤">枯藤</a>
        </li>
        
        <li>
            <a target="_blank" href="https://gorm.cn/zh_CN/docs/index.html" title="gorm">gorm</a>
        </li>
        
        <li>
            <a target="_blank" href="https://docs.python.org/zh-cn/3/tutorial/index.html" title="python">python</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.liwenzhou.com/" title="李文周">李文周的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://www.xbzweb.com/" title="小包子的博客">小包子的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="https://www.flysnow.org/" title="飞雪无情的博客">飞雪无情的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="https://sliverhorn.com/" title="sliverhorn的博客">sliverhorn的博客</a>
        </li>
        
        <li>
            <a target="_blank" href="http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e" title="Android Gradle权威指南">Android Gradle权威指南</a>
        </li>
        
        <li>
            <a target="_blank" href="https://gesdh.cn/" title="小格子">格子导航</a>
        </li>
        
        <li>
            <a target="_blank" href="https://itachi.xyz/" title="阿林">itachi&#39;s Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="https://darjun.github.io/" title="大俊">大俊Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="https://geektutu.com/post/quick-golang.html" title="极客兔兔">极客兔兔Blog</a>
        </li>
        
        <li>
            <a target="_blank" href="http://zxfcumtcs.github.io/" title="赵雪峰">雪峰Blog</a>
        </li>
        
    </ul>
</section>


    <section class="widget">
        <h3 class="widget-title">其它</h3>
        <ul class="widget-list">
            <li><a href="https://luckly.work/index.xml">文章 RSS</a></li>
        </ul>
    </section>
</div>
            </div>
        </div>
    </div>
</body>

</html>